package cn.iocoder.yudao.module.book.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 分类新增/修改 Request VO")
@Data
public class CategorySaveReqVO {

    @Schema(description = "分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20391")
    private Integer categoryId;

//    @Schema(description = "绘本集")
//    private String collectionList;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "类别", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "类别不能为空")
    private Integer classifyId;

    @Schema(description = "是否置顶", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否置顶不能为空")
    private Boolean isTop;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}